<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>更新缓存</title>
    <script type="text/javascript" src="../../js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript">
        function updCache() {
            var cacheType = $("#selectUpdCache").attr("value");
            if (cacheType == '0') return;
            document.getElementById('result').innerHTML = '缓存更新中...';
            $.ajax({type:'get', url:'cacheUpdate.html', data:'cacheType=' + cacheType, success:function(data) {
                document.getElementById('result').innerHTML = data;
            }});
        }
    </script>
</head>
<body>

    <div id="wrap">
        <select id="selectUpdCache">
            <option value="0">- 请选择 -</option>
            <option value="1">全部</option>
            <option value="2">轮播电影</option>
            <option value="3">系统参数</option>
        </select>
        <button onclick="updCache();">更新</button>
        <div id="result" style="display: inline;">aaa</div>
    </div>

</body>
</html>